package br.edu.utfpr.backuptools.BackupTools.view.action.backup;

import java.util.List;

import br.edu.utfpr.backuptools.BackupTools.controller.ControladorBackupImpl;
import br.edu.utfpr.backuptools.BackupTools.controller.interfaces.ControladorBackup;
import br.edu.utfpr.backuptools.BackupTools.controller.validator.BackupValidator;
import br.edu.utfpr.backuptools.BackupTools.model.dao.DaoBackupImpl;
import br.edu.utfpr.backuptools.BackupTools.model.dao.interfaces.DaoBackup;
import br.edu.utfpr.backuptools.BackupTools.model.pojo.Backup;
import br.edu.utfpr.backuptools.BackupTools.view.action.AbstractConsultaAction;

public class ListarBackupAction extends AbstractConsultaAction<Backup>{
	
	DaoBackup dao = new DaoBackupImpl();
	ControladorBackup controlador = new ControladorBackupImpl(dao,new BackupValidator());
	
	@Override
	public List<Backup> execute() {
		return controlador.list();
	}
}
